package com.lvcoding.auth2.auth.shizhan.verifycode.sms;

import com.lvcoding.auth2.auth.shizhan.verifycode.parent.VerifyCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 短信验证码实体
 *
 * @author wuyanshen
 */
@NoArgsConstructor
public class SmsCode extends VerifyCode {
    public SmsCode(String code, int expire) {
        super(code, LocalDateTime.now().plusMinutes(expire));
    }
}
